package schema

type MultiGoodsNew struct {
	GoodsID    string  `json:"goods_id"`
	GoodsImage string  `json:"goods_image"`
	Price      float64 `json:"price"`
}

type MultiGoodsOld struct {
	GoodsID    string  `json:"GoodsID"`
	GoodsImage string  `json:"GoodsImage"`
	Price      float64 `json:"Price"`
}

type MultiAssocGoodsNew struct {
	GoodsID string `json:"goods_id"`
}

type AllGoodsActivityDataDetail struct {
	ID                 string                 `json:"id"`
	ActivityName       string                 `json:"activity_name"`
	StartTime          string                 `json:"start_time"`
	EndTime            string                 `json:"end_time"`
	Status             string                 `json:"status"`
	SalesID            string                 `json:"sales_id"`
	CreatedAt          string                 `json:"created_at"`
	GoodsID            string                 `json:"goods_id"`
	Type               string                 `json:"type"`
	ActivityID         string                 `json:"activity_id"`
	MultiDiscountGoods string                 `json:"multi_discount_goods"`
	ActivityData       []GoodsActivityDataNew `json:"activity_data" gorm:"-"` // 商品活动数据详情
}

// 折扣商品信息
type GoodsActivityDataDetail struct {
	GoodsID       string `json:"goods_id"`
	Discount      string `json:"discount"`
	ExchangePrice string `json:"exchange_price"`
}

type GoodsActivityData struct {
	Type              string                    `json:"type"`
	AssocGoodsID      string                    `json:"assoc_goods_id"`
	DiscountGoodsInfo []GoodsActivityDataDetail `json:"discount_goods_info"`
}

type GoodsActivityDataNew struct {
	Type              string `json:"type"`
	AssocGoodsID      string `json:"assoc_goods_id"`
	DiscountGoodsInfo string `json:"discount_goods_info"`
	GoodsName         string `json:"goods_name"`
	GoodsImage        string `json:"goods_image"`
}

type MultiDiscountGoodsNew struct {
	GoodsID       string  `json:"goods_id"`
	Discount      float64 `json:"discount"`
	ExchangePrice float64 `json:"exchange_price"`
}

type MultiDiscountGoodsTwo struct {
	GoodsID       string  `json:"goods_id"`
	Discount      string  `json:"discount"`
	ExchangePrice string  `json:"exchange_price"`
	GoodsName     string  `json:"goods_name"`
	GoodsImage    string  `json:"goods_image"`
	GoodsPrice    float64 `json:"goods_price"`
}
